package sys

import (
	"github.com/kataras/iris/mvc"
	"github.com/kataras/iris/context"
	"cn.pinming/gencode/modules/sys/controller"
	"cn.pinming/gencode/core/logs"
)

func InitRounter(app *mvc.Application) {
	app.Handle(new (controller.LoginController))
	app.Handle(new (controller.ConsoleController))
	userApp:=app.Party("/user", func(ctx context.Context) {
		logs.Debugf("代码生成模块入口:%s",ctx.Request().RequestURI)
		ctx.Next()
	})
	userApp.Handle(new (controller.UserController))
}